package com.group.Service.Impl;

import com.group.DAO.ComplaintTypeDAO;
import com.group.Enity.ComplaintType;
import com.group.Service.ComplaintTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComplaintTypeServiceImpl implements ComplaintTypeService {

    @Autowired
    private ComplaintTypeDAO complaintTypeDAO;

    @Override
    public List<ComplaintType> getComplaintTypes() {
        return complaintTypeDAO.getTypes();
    }
}
